package com.woniuxy.goods.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.goods.mapper.PullMapper;
import com.woniuxy.goods.model.entity.Pull;
import com.woniuxy.goods.model.entity.PullVo;
import com.woniuxy.goods.model.vo.PageAndSize;
import com.woniuxy.goods.service.PullService;
import com.woniuxy.model.entity.Goods;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

@Service
public class PullServiceImpl extends ServiceImpl<PullMapper, Pull> implements PullService {

    @Resource
    private PullMapper pullMapper;
    @Override
    public IPage<PullVo> pullFindAll(PageAndSize pageAndSize) {
        Page<Pull> page = new Page<>(pageAndSize.getCurrentPage(),pageAndSize.getSize());




        return pullMapper.pullFindAll(page);
    }



}
